﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AllPurposeCard.XuJian
{
    public partial class Expenditure : Form
    {
        public PayByCard pbc;
        public Login login;
        public Expenditure()
        {
            InitializeComponent();
        }

        private void Expenditure_Load(object sender, EventArgs e)
        {
            pbc = new PayByCard();
            login = new Login();
        }


        //模拟地铁消费
        private void MoNiPay_Click(object sender, EventArgs e)
        {
            pbc.MdiParent = this;
            pbc.Show();   //将窗体一进行显示
            center.Controls.Clear();    //清空原容器上的控件
            center.Controls.Add(pbc);
        }
        private void MoNiTitle_Click(object sender, EventArgs e)
        {
            pbc.MdiParent = this;
            pbc.Show();   //将窗体一进行显示
            center.Controls.Clear();    //清空原容器上的控件
            center.Controls.Add(pbc);
        }

        //用户信息管理
        private void UserInf_Click(object sender, EventArgs e)
        {
            login.MdiParent = this;
            login.Show();   //将窗体一进行显示
            center.Controls.Clear();    //清空原容器上的控件
            center.Controls.Add(login);
        }
        private void UserinfTitle_Click(object sender, EventArgs e)
        {
            login.MdiParent = this;
            login.Show();   //将窗体一进行显示
            center.Controls.Clear();    //清空原容器上的控件
            center.Controls.Add(login);
        }


    }
}
